﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MesGLApp.DAL.MesDTO
{
    [NotMapped]
    public class SiteScanDTO
    {
        /// <summary>
        /// 扫码站点
        /// </summary>
        [NotMapped]
        public SiteInfoGroupDTO scan_site { get; set; } = null;

        /// <summary>
        /// 工单所在站点
        /// </summary>
        [NotMapped]
        public SiteInfoGroupDTO curr_site { get; set; } = null;

        /// <summary>
        /// 工单制程的最终站点
        /// </summary>
        [NotMapped]
        public SiteInfoGroupDTO finally_site { get; set; } = null;

        /// <summary>
        /// 上工序站点
        /// </summary>
        [NotMapped]
        public List<SiteInfoGroupDTO> last_site_list { get; set; } = new List<SiteInfoGroupDTO>();

        /// <summary>
        /// 上工序结余数量
        /// </summary>
        [NotMapped]
        public decimal last_qty { get; set; } = 0;

        /// <summary>
        /// 本工序完成数量
        /// </summary>
        [NotMapped]
        public decimal clear_qty { get; set; } = 0;

        /// <summary>
        /// 本工序剩余数量
        /// </summary>
        [NotMapped]
        public decimal surp_qty { get; set; } = 0;


        /// <summary>
        /// 是否首站
        /// </summary>
        [NotMapped]
        public bool is_first { get; set; } = false;
    }
}
